{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <form id="myform" action="{:U('Slide/add')}" method="post">
        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right"><font color="red">*</font>{:L(name)}</label>
            <div class="col-md-5">
                <input type="text" name="name" class="form-control"/>
            </div>
        </div>

        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">幻灯片宽</label>
            <div class="col-md-5">
                <input type="text" name="width" class="form-control"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">幻灯片高</label>
            <div class="col-md-5">
                <input type="text" name="height" class="form-control"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">图片数量</label>
            <div class="col-md-5">
                <input type="text" name="num" class="form-control"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">状态</label>
            <div class="col-md-5">
                {:Form::radio(array('field'=>'status','options'=>array('1'=>L('enable'),'0'=>L('disable'))),1)}
            </div>
        </div>
        <div class="form-actions">
            <input type="submit" value="确认" class="btn btn-primary ajax_form_add"/>
            <a href="{:U('Slide/index')}" class="btn btn-primary">返回广告列表</a>
        </div>
    </form>
</div>
{/block}